package exercise_1;

import java.util.Scanner;

public class exercise_1 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String reply;
		do {
			System.out.println("please input an integer:");
			int input = in.nextInt();
			if (input == 0) {
				System.out.println("石头");
			}
			else if (input == 1) {
				System.out.println("剪刀");
			}
			else if (input == 2) {
				System.out.println("布");
			}
			System.out.println("continue?(Y|N)");
			reply = in.next();
			} while("y".equalsIgnoreCase(reply));

	}

}
